python split range equally

104

split list into lists of equal length python -

[lst[i:i + n] for i in range(0, len(lst), n)]

Comments

Submit
0 Comments